package com.java110.intf.cart;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.housekeeping.HousekeepingServPoolDto;
import com.java110.po.housekeeping.HousekeepingServPoolPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IHousekeepingServPoolInnerServiceSMO
 * @Description 家政维修池接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-cart", configuration = {FeignConfiguration.class})
@RequestMapping("/housekeepingServPoolApi")
public interface IHousekeepingServPoolInnerServiceSMO {


    @RequestMapping(value = "/saveHousekeepingServPool", method = RequestMethod.POST)
    public int saveHousekeepingServPool(@RequestBody HousekeepingServPoolPo housekeepingServPoolPo);

    @RequestMapping(value = "/updateHousekeepingServPool", method = RequestMethod.POST)
    public int updateHousekeepingServPool(@RequestBody  HousekeepingServPoolPo housekeepingServPoolPo);

    @RequestMapping(value = "/deleteHousekeepingServPool", method = RequestMethod.POST)
    public int deleteHousekeepingServPool(@RequestBody  HousekeepingServPoolPo housekeepingServPoolPo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param housekeepingServPoolDto 数据对象分享
     * @return HousekeepingServPoolDto 对象数据
     */
    @RequestMapping(value = "/queryHousekeepingServPools", method = RequestMethod.POST)
    List<HousekeepingServPoolDto> queryHousekeepingServPools(@RequestBody HousekeepingServPoolDto housekeepingServPoolDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param housekeepingServPoolDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryHousekeepingServPoolsCount", method = RequestMethod.POST)
    int queryHousekeepingServPoolsCount(@RequestBody HousekeepingServPoolDto housekeepingServPoolDto);

    /**
     * 查询员工家政服务
     * @param housekeepingServPoolDto
     * @return
     */
    @RequestMapping(value = "/queryStaffServCount", method = RequestMethod.POST)
    int queryStaffServCount(@RequestBody HousekeepingServPoolDto housekeepingServPoolDto);

    @RequestMapping(value = "/queryStaffServs", method = RequestMethod.POST)
    List<HousekeepingServPoolDto> queryStaffServs(@RequestBody HousekeepingServPoolDto housekeepingServPoolDto);
    /**
     * 查询员工家政服务
     * @param housekeepingServPoolDto
     * @return
     */
    @RequestMapping(value = "/queryStaffFinishServCount", method = RequestMethod.POST)
    int queryStaffFinishServCount(@RequestBody HousekeepingServPoolDto housekeepingServPoolDto);

    @RequestMapping(value = "/queryStaffFinishServs", method = RequestMethod.POST)
    List<HousekeepingServPoolDto> queryStaffFinishServs(@RequestBody HousekeepingServPoolDto housekeepingServPoolDto);
}
